The Dreamweaver JavaScript API > Selection functions > site.setCurrentSite()

 

site.setCurrentSite()

Availability

Dreamweaver 3.0

Description

Opens the specified site in the local pane of the Site window.

Arguments

whichSite

whichSite is the name of a defined site (as it appears in the Current Sites list in the Site window or the Define Sites dialog box).

Returns

Nothing.

Enabler

None.

Example

If three sites are defined (for example, avocado8, dreamcentral, and testsite), a call to site.setCurrentSite("dreamcentral"); makes dreamcentral the current site.